Part Number Hot Search : 
F561J A1013 ON2921 AQ6370 BU536 ESD3V 25CTQ035 50013
Product Description
Full Text Search
 

To Download DS1921G-F5 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1 of 45 120407 ds1921g thermochron i button www.maxim-ic.com special features ? digital thermometer measures temperature in 0.5c increments ? accuracy 1c from -30c to +70c. see ec table for accuracy specification ? built-in real-time clock (rtc) and timer has accuracy of 2 minutes per month from 0c to 45c ? water resistant or waterproof if placed inside ds9107 i button ? capsule (exceeds water resistant 3 atm requirements) ? automatically wakes up and measures tem- perature at user-programmable intervals from 1 to 255 minutes ? logs up to 2048 consecutive temperature measurements in protected nonvolatile (nv) random access memory ? records a long-term temperature histogram with 2.0c resolution ? programmable temperature-high and temperature-low alarm trip points ? records up to 24 time stamps and durations when temperature leaves the range specified by the trip points ? 512 bytes of general-purpose read/write nv random access memory ? communicates to host with a single digital signal at 15.4kbits or 125kbits per second using 1-wire ? protocol common i button features ? digital identification and information by momentary contact ? unique, factory-lasered and tested 64-bit reg- istration number (8-bit family code + 48-bit serial number + 8-bit crc tester) assures ab- solute traceability b ecause no two parts are alike ? multidrop controller for 1-wire net ? chip-based data carrier compactly stores information ? data can be accessed while affixed to object ? button shape is self-ali gning with cup-shaped probes ? durable stainless-steel case engraved with registration number withstands harsh environments ? easily affixed with self-stick adhesive backing, latched by its flange, or locked with a ring pressed onto its rim ? presence detector acknowledges when reader first applies voltage ? meets ul#913 (4th edit.). intrinsically safe apparatus: approved und er entity concept for use in class i, division 1, group a, b, c and d locations f5 microcan io gnd 0.51 5.89 16.25 17.35 89 21 000000fbc52b 1-wire ? ? ? thermochron ? all dimensions are shown in millimeters. ordering information DS1921G-F5 -40 c to +85c f5 i button examples of accessories ds9096p self-stick adhesive pad ds9101 multi-purpose clip ds9093ra mounting lock ring ds9093a snap-in fob ds9092 i button probe 1-wire, microcan, and i button are registered trademarks of dallas semiconductor, corp., a wholly owned subsidiary of maxim integrated products, inc.
ds1921g thermochron i button 2 of 45 i button description the ds1921g thermochron i button is a rugged, self-sufficient sy stem that measures temperature and records the result in a protected me mory section. the recording is done at a user-defined rate, both as a direct storage of temperature values as well as in the form of a histogram. up to 2048 temperature values taken at equidistant intervals ranging from 1 to 255 minutes can be stored. the histogram provides 63 data bins with a resolution of 2.0c. if the temp erature leaves a user-pr ogrammable range, the ds1921g will also record when this happened, for how long the temperature stayed outside the permitted range, and if the temperature was too high or too low. an additional 512 bytes of read/write nv memory allow storing information pertaining to the object to which the ds1921g is associated. data is transferred serially via the 1-wire protocol, which requires only a single data lead and a ground return. every ds1921g is factory-lasered with a guar anteed unique electrica lly readable 64 -bit registration number that allows for absolute traceability. the durable stainle ss steel package is highly resistant to environmental hazards such as dirt, moisture, and shock. accessori es permit the ds1921g to be mounted on almost any object, including containe rs, pallets, and bags. application the ds1921g thermochron i button is an ideal device to monitor the temperature of any object it is attached to or shipped with, such as perishable goods or containers of temperature sensitive chemicals. the read/write nv memory can store an electronic copy of shipping information, date of manufacture and other important data writt en as clear as well as encrypted files. note that the initial sealing level of ds1921g achieves ip56. aging and use c onditions can degrade th e integrity of the seal over time, so for applications with significant exposure to liquids, sp rays, or other similar environments, it is recom- mended to place the thermochron in the ds9107 i button capsule. the ds9107 provides a watertight enclosure that has be en rated to ip68 (see www.maxim-ic.com/an4126 ). overview the block diagram in figure 1 shows the relationships between the major control and memory sections of the ds1921g. the device has seven main data compone nts: 1) 64-bit lasered rom, 2) 256-bit scratch- pad, 3) 4096-bit general-purpose sram, 4) 256-bit regi ster page of timekeeping, control, and counter registers, 5) 96 bytes of alarm time stamp and du ration logging memory, 6) 126 bytes of histogram mem- ory, and 7) 2048 bytes of data-logg ing memory. except for the rom and the scratchpad, all other mem- ory is arranged in a single linear address space. all memory reserved for logging purposes, counter reg- isters and several other registers are read-only for the user. the timekeeping and control registers are write-protected while the devi ce is programmed for a mission. the hierarchical structure of the 1- wire protocol is shown in figure 2. the bus master must first provide one of the seven rom function commands: 1) read ro m, 2) match rom, 3) search rom, 4) condi- tional search rom, 5) skip rom, 6) overdrive-sk ip rom or 7) overdrive-match rom. upon comple- tion of an overdrive rom command byte executed at standard speed, the device will enter overdrive mode, where all subsequent communi cation occurs at a higher speed. th e protocol required for these rom function commands is descri bed in figure 13. after a rom func tion command is successfully exe- cuted, the memory functions become accessible and th e master may provide any one of the seven avail- able commands. the protocol for these memory function commands is described in figure 10. all data is read and written least significant bit first.
ds1921g thermochron i button figure 1. ds1921g block diagram internal timekeeping & control reg. & counters 3v lithium general-purpose sram register page alarm time stamp and duration logging memory datalog memory histogram memory 32.768khz oscillator control lo g ic temperature core 256-bit scratchpad memory function control rom function control 64-bit lasered rom parasite powered circuitry 1-wire port io parasite power the block diagram (figure 1) shows the parasite-power ed circuitry. this circuitry ?steals? power when- ever the io input is high. io will provide sufficient power as long as the specifi ed timing and voltage re- quirements are met. the advantages of parasite power are two-fold: 1) by parasiting off this input, lithium is conserved, and 2) if the lithium is exhausted for any reason, the rom may still be read normally. 64-bit lasered rom each ds1921g contains a unique rom code that is 64 bits long. the first 8 bits are a 1-wire family code. the next 48 bits are a unique serial number. the last eight bits are a crc of the first 56 bits. see figure 3 for details. the 1-wire crc is generate d using a polynomial generator consisting of a shift register and xor gates as show n in figure 4. the polynomial is x 8 + x 5 + x 4 + 1. additional information about the dallas 1-wire cyclic redundancy check is available in application note 27 and in the book of ds19xx i button standards. the shift register bits are initialized to 0. then star ting with the least significant bit of the family code, one bit at a time is shifted in. after the eighth bit of the family code has been entered, then the serial number is entered. after the 48 th bit of the serial number has been en tered, the shift register contains the crc value. shifting in the eight bits of cr c returns the shift register to all 0s. 3 of 45
ds1921g thermochron i button figure 2. hierarchical struct ure for 1-wire protocol 1-wire net other devices bus master command level: 1-wire rom function commands ds1921-specific memory/control function commands ds1921 available commands: read rom match rom search rom skip rom overdrive skip overdrive match conditional search rom write scratchpad read scratchpad copy scratchpad read memory read memory w/crc clear memory convert temperature data field a ffected: 64-bit reg. # 64-bit reg. # 64-bit reg. # n/a od-flag 64-bit reg. #, od-flag 64-bit reg. #, cond. search settings, device status 256-bit scratchpad, flags 256-bit scratchpad 4096-bit sram, registers, flags a ll memory a ll memory mission time stamp, mission samples counter, start delay, sample rate, alarm time stamps and durations, histogram memory memory address 211h cmd. codes: 33h 55h f0h cch 3ch 69h ech 0fh aah 55h f0h a5h 3ch 44h figure 3. 64-bit lasered rom msb lsb 8-bit crc code 48-bit serial number 8-bit family code (21h) msb lsb msb lsb msb lsb 4 of 45
ds1921g thermochron i button figure 4. 1-wire crc generator x 0 x 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 polynomial = x 8 + x 5 + x 4 + 1 1 st stage 2 nd stage 3 rd stage 4 th stage 6 th stage 5 th stage 7 th stage 8 th stage input data memory the memory map of the ds1921g is shown in figur e 5. the 4096-bit general- purpose sram make up pages 0 through 15. the timekeeping, control, and counter registers fill page 16, called register page (see figure 6). pages 17 to 19 are assigned to storing th e alarm time stamps and durations. the temperature histogram bins begin at page 64 and use up to four pages. the temperature logging memory covers pages 128 to 191. memory pages 20 to 63, 68 to 127, and 192 to 255 are reserved for future extensions. the scratchpad is an additional page that acts as a buffer when writing to the sram memory or the register page. the memory pages 17 and higher are read-only for the user. they are written to or erased solely under supervision of the on-chip control logic. figure 5. ds1921g memory map 32-byte intermediate storage scratchpad a ddress 0000h to 01ffh general-purpose sram (16 pages) pages 0 to 15 0200h to 021fh 32-byte register page page 16 0220h to 027fh alarm time stamps and durations pages 17 to 19 0280h to 07ffh (reserved for future extensions) pages 20 to 63 0800h to 087fh temperature histogram memory pages 64 to 67 0880h to 0fffh (reserved for future extensions) pages 68 to 127 1000h to 17ffh datalog memory (64 pages) pages 128 to 191 1800h to 1fffh (reserved for future extensions) pages 192 to 255 5 of 45
ds1921g thermochron i button figure 6. ds1921g register page map addr b7 b6 b5 b4 b3 b2 b1 b0 function access* 0200h 0 10 seconds single seconds 0201h 0 10 minutes single minutes real- 0202h 0 12/24 20h. am/pm 10h. single hours time clock r/w; r/w** 0203h 0 0 0 0 0 day of week registers 0204h 0 0 10 date single date 0205h cent 0 0 10m. single months 0206h 10 years single years 0207h ms 10 seconds alarm single seconds alarm real- 0208h mm 10 minutes alarm single minutes alarm time 0209h mh 12/24 10ha. a/p 10h. alm. single hours alarm clock alarm r/w; r/w** 020ah md 0 0 0 0 day of week alarm registers 020bh temperature low alarm threshold temp. r/w; r/w** 020ch temperature high alarm threshold alarms 020dh number of minutes between temperature conversions sample rate r/w; r** 020eh eosc emclr 0 em ro tls ths tas control r/w; r/w** 020fh (no function, reads 00h) (n/a) r; r** 0210h (no function, reads 00h) (n/a) r; r** 0211h temperature read out (forced conversion) temp. r; r** 0212h low byte start r/w; r/w** 0213h high byte delay 0214h tcb memclr mip sip 0 tlf thf taf status r/w; r/w 0215h minutes 0216h hours mission 0217h date time r; r 0218h month stamp 0219h year 021ah low byte mission 021bh center byte samples r; r 021ch high byte counter 021dh low byte device 021eh center byte samples r; r 021fh high byte counter *the first entry in column acce ss is valid between missions. the second entry shows the applicable access mode while a mission is in progress. **while a mission is in progress, these addresses can be read. the first attempt to write to these registers (even read-only ones), however, will end the missi on and overwrite selected writeable registers. timekeeping the rtc/alarm and calendar information is accesse d by reading/writing the ap propriate bytes in the register page, address 200h to 206h. note that some bits are set to 0. these bits will always read 0 regardless of how they are written. the contents of the time, calendar, and alarm registers are in the binary-coded decimal (bcd) format. 6 of 45
ds1921g thermochron i button 7 of 45 rtc and rtc alarm register bitmap addr b7 b6 b5 b4 b3 b2 b1 b0 0200h 0 10 seconds single seconds 0201h 0 10 minutes single minutes 0202h 0 12/24 20h. am/pm 10h. single hours 0203h 0 0 0 0 0 day of week 0204h 0 0 10 date single date 0205h cent 0 0 10m. single months 0206h 10 years single years 0207h ms 10 seconds alarm single seconds alarm 0208h mm 10 minutes alarm single minutes alarm 0209h mh 12/24 10ha. a/p 10h. alm. single hours alarm 020ah md 0 0 0 0 day of week alarm rtc/calendar the rtc of the ds1921g can run in either 12-hour or 24-hour mode. bit 6 of the hours register (address 202h) is defined as the 12- or 24-hour mode se lect bit. when high, the 12-hour mode is selected. in the 12-hour mode, bit 5 is the am/pm bit with logic 1 being pm. in the 24-hour mode, bit 5 is the 20- hour bit (20 to 23 hours). to distinguish between the days of the week the ds 1921g includes a counter with a range from 1 to 7. the assignment of counter value to the day of week is arbitrary. typically, the number 1 is assigned to a sunday (u.s. standard) or to a monday (european standard). the calendar logic is designed to automatically compensa te for leap years. for every year value that is either 00 or a multiple of 4 the device will add a 29 th of february. this will work correctly up to (but not including) the year 2100. the ds1921g is y2k-compliant. bit 7 (cent) of th e months register at address 205h serves as a century flag. when the year register rolls over from 99 to 00 the century flag will toggle. it is recom- mended to write the century bit to a 1 when setti ng the rtc to a time/date between the years 2000 and 2099. rtc alarms the ds1921g also contains a rtc alarm function. th e alarm registers are loca ted in registers 207h to 20ah. the most significant bit of each of the alarm registers is a mask bit. when all of the mask bits are logic 0, an alarm will occur once per week when the values stored in timekeeping registers 200h to 203h match the values stored in the time of day alarm registers. any alarm will set the timer alarm flag (taf) in the device's status regist er (address 214h). the bus master may set the search conditions in the control register (address 20eh) to identify devices with timer alarms by means of the conditional search function (see rom function commands ).
ds1921g thermochron i button 8 of 45 rtc alarm control alarm register mask bits (bit 7 of 207h to 20ah) ms mm mh md 1 1 1 1 alarm once per second. 0 1 1 1 alarm when seconds match (once per minute). 0 0 1 1 alarm when minutes and seconds match (once every hour). 0 0 0 1 alarm when hours, minutes and seconds match (once every day). 0 0 0 0 alarm when day, hours, minutes, and seconds match (once every week). temperature conversion the ds1921g measures temperatures w ith a resolution of 0.5c. temperat ure values are represented in a single byte as an unsigned binary nu mber, which translates into a theo retical range of 128c. the range, however, has been limited to values from 0000 0000 (00h) through 1111 1010 (fah). the codes 01h to f9h are considered valid temperature readings. if a temperature conversion yields a temperature that is out-of-range, it will be recorded as 00h (if too low) or fah (if too high). since ou t-of-range results are accumulated in histogram bins 0 and 62 (see section temperature logging and histogram ) the data in these bins is of limited value. for this reason the specified temperature range of the ds1921g is considered to begin at code 04h and end at code f7h, which corresponds to histogram bins 1 to 61. with t[7..0] representing the decimal equivalent of a temperature reading, the temperature value is calculated as ? (c) = t[7?0] / 2 - 40.0 this equation is valid for converting temperature read ings stored in the datalog memory as well as for data read from the forced temperature c onversion readout register (address 211h). to specify the high or low temperature alarm thre sholds, this equation needs to be resolved to t[7?0] = 2 * ? (c) + 80.0 a value of 23c, for example, thus translates into 126 decimal or 7eh. this corresponds to the binary patterns 0111 1110, which could be wr itten to a temperature alarm register (address 020bh and 020ch, respectively). temperature alarm register map addr b7 b6 b5 b4 b3 b2 b1 b0 020bh temperature low alarm threshold 020ch temperature high alarm threshold
ds1921g thermochron i button sample rate the content of the sample rate register (address 020dh) determines how many minutes the temperature conversions are apart from each other during a mission. the sample rate may be any value from 1 to 255, coded as an unsigned 8-bit binary number. if the memory has been cleared (status register bit memclr = 1) and a mission is enabled (status register bit em = 0), writing a non-zero va lue to the sample rate register will start a mission. for a full description of the co rrect sequence of steps to start a temperature- logging mission see sections missioning or missioning example . 9 of 45 sample rate register map addr b7 b6 b5 b4 b3 b2 b1 b0 020dh sample rate control register the ds1921g is set up for its opera tion by writing appropriate data to its special function registers that are located in the register page. several functions that are controlled by a single bit only are combined into a single byte called control register (address 20e h). this register can be read and written. if the device is programmed for a mission, writing to the control register will end the mission and change the register contents. control register bitmap addr b7 b6 b5 b4 b3 b2 b1 b0 020eh eosc emclr 0 em ro tls ths tas the functional assignments of the individual bits are explained in the table below. bit 5 has no function. it always reads 0 and cannot be written to 1. control register details bit description bit(s) definition eosc: enable oscillator b7 this bit controls the crystal oscillator of the rtc. when set to logic 0, the oscillator will start operation. when written to logic 1, the oscillator will stop and the device is in a low-power data retention mode. this bit must be 0 for normal operation. the rtc must have advanced at least 1 second before a mission start will be accepted. emclr: memory clear enable b6 this bit needs to be set to logic 1 to enable the clear memory function, which is invoked as a memory function command. the time-stamp, histogram memory as well as t he mission time stamp, mission samples counter, mission start dela y and sample rate will be cleared only if the clear memory command is issued with the next access to the device . the emclr bit will return to 0 as the next memory function command is executed. em: enable mission b4 this bit controls whether the ds1921g will begin a mission as soon as the sample rate is written. to enable the device for a mission, this bit must be 0. ro: rollover enable/disable b3 this bit controls whether the temper ature logging memory is overwritten with new data or whether data logging is stopped once the memory is filled with data during a mission. setting this bit to a 1 enables the rollover and data logging continues at the beginning overwriting previously collected data. clearing this bit to 0 disables the rollover and no further temperature values will be stored in the te mperature logging memory once it is filled with data. this will not stop the mission. the device will continue measuring temperatures and updating the histogram and alarm time stamps and durations.
ds1921g thermochron i button 10 of 45 bit description bit(s) definition tls: temperature low alarm search b2 if this bit is 1, the device will respond to a conditional search command if during a mission the temperature has reached or is lower than the low temperature threshold stored at address 020bh. ths: temperature high alarm search b1 if this bit is 1, the device will respond to a conditional search command if during a mission the temperature has reached or is higher than the high temperature threshold stored at address 020ch. tas: timer alarm search b0 if this bit is 1, the device will respond to a conditional search command if during a mission a timer alarm has occurred. since a timer alarm cannot be disabled, the taf flag usually reads 1 during a mission. therefore it may be advisable to set the tas bit to a 0, in most cases. mission start delay counter the content of the mission start delay counter determ ines how many minutes th e device will wait before starting the logging process. the miss ion start delay value is stored as unsigned 16-bit integer number at addresses 212h (low byte) and 213h (high byte). the maximum delay is 65535 minut es, equivalent to 45 days, 12 hours, and 15 minutes. for a typical mission, the mission star t delay is 0. if a mission is too lo ng for a single ds1921g to store all temperature readings at the se lected sample rate, one can use se veral devices, staggering the mission start delay to record the full period. in this case, th e ro bit in the control re gister (address 020eh) must be set to 0 to prevent overwriting of the recorded temperature log after the datalog memory is full. see mission start and logging process description and flow chart for details. status register the status register holds device stat us information and alarm flags. th e register is located at address 214h. writing to this register will not necessarily end a mission. status register bitmap addr b7 b6 b5 b4 b3 b2 b1 b0 0214h tcb memclr mip sip 0 tlf thf taf the functional assignments of the i ndividual bits are explained in the table below. the bits mip, tlf, thf and taf can only be written to 0. all othe r bits are read-only. bit 3 has no function. status register details bit description bit(s) definition tcb: temperature core busy b7 if this bit reads 0 the ds1921g is currently performing a temperature conversion, either self-initiated because of a mission being in progress or initiated by a command when a mission is not in progress. the tcb bit goes low just before a conversion st arts and returns to high just after the result is latched into the readout register at address 0211h. memclr: memory cleared b6 if this bit reads 1, the memory pages 17 and higher (alarm time stamps/durations, temperature histogram, excluding datalog memory), as well as the mission time stamp, mission samples counter, mission start delay and sample rate have been cleared to 0 from executing a clear memory function command. the memclr bit will return to 0 as soon as writing a non-0 value to the sample rate register starts a new mission, provided that the em bit is also 0. the memory has to be cleared in order for a mission to start.
ds1921g thermochron i button 11 of 45 bit description bit(s) definition mip: mission in progress b5 if this bit reads 1 the ds1921g has been set up for a mission and this mission is still in progress. a mission is started if the em bit of the control register (address 20eh) is 0 and a non-zero value is written to the sample rate register, address 20dh. the mip bit returns from logic 1 to logic 0 when a mission is ended. a mission will end with the first write attempt (copy scratchpad command) to any register in the address range of 200h to 213h. alternat ively, a mission can be ended by directly writing to the status regist er and setting the mip bit to 0. the mip bit cannot be set to 1 by writing to the status register. sip: sample in progress b4 if this bit reads 1 the ds1921g is currently performing a temperature conversion as part of a mission in progress. the mission samples occur on the seconds rollover from 59 to 00. the sip bit will change from 0 to 1 approximately 250ms before the actual temperature conversion begins allowing the circuitry of the chip to wake-up. a temperature conversion including a wake-up phase takes maximum 875ms. during this time read accesses to the memory pages 17 and higher are permissible but may reveal invalid data. tlf: temperature low flag b2 logic 1 in the temperature low flag bit indicates that a temperature measurement during a mission revealed a temperature equal to or lower than the value in the temperature low threshold register. the temperature low flag can be cleared at any time by writing this bit to 0. this flag must be cleared before starting a new mission. thf: temperature high flag b1 logic 1 in the temperature high flag bit indicates that a temperature measurement during a mission revealed a temperature equal to or higher than the value in the temperature high threshold register. the temperature high flag can be cleared at any time by writing this bit to 0. this flag must be cleared before starting a new mission. taf: timer alarm flag b0 if this bit reads 1, a rtc alarm has occurred (see timekeeping section for details). the timer alarm flag can be cleared at any time by writing this bit to logic 0. since the timer alarm cannot be disabled, the taf flag usually reads 1 during a mission. this flag should be cleared before starting a new mission. mission time stamp the mission time stamp indicates the time and date of the first te mperature conversion of a mission. subsequent temperature conversions will take place as many minutes apart from each other as specified by the value in the sample rate register . mission samples occur on minute boundaries. mission time stamp register bitmap addr b7 b6 b5 b4 b3 b2 b1 b0 0215h 0 10 minutes single minutes 0216h 0 12/24 20h. am/pm 10h. single hours 0217h 0 0 10 date single date 0218h 0 0 0 10m. single months 0219h 10 years single years mission samples counter the mission samples counter indi cates how many temperature measurements have taken place during the current mission in progres s (if mip = 1) or during the latest mission (if mip = 0). the value is stored as an unsigned 24-bit integer number. this counter is reset through the clear memory command.
ds1921g thermochron i button 12 of 45 mission samples counter register map addr b7 b6 b5 b4 b3 b2 b1 b0 021ah low byte 021bh center byte 021ch high byte device samples counter the device samples counter indicates how many temp erature measurements have taken place since the device was assembled at the factory. the value is stored as an unsigned 24-bit integer number. the maximum number that can be represented in this fo rmat is 16777215, which is hi gher than the expected lifetime of the ds1921g i button. this counter cannot be reset under software control. device samples counter register map addr b7 b6 b5 b4 b3 b2 b1 b0 021dh low byte 021eh center byte 021fh high byte temperature logging and histogram once setup for a mission, the ds1921g logs the temper ature measurements simultaneously byte after byte in the datalog memory as well as in histogram form in the histogram me mory. the datalog memory is able to store 2048 temperature values measured at equidistant time points. th e first temperature value of a mission is written to addre ss location 1000h of the datalog memo ry, the second value to address location 1001h and so on. knowing the starting time poi nt (mission time stamp) , the interval between temperature measurements, the mission samples count er, and the rollover setting, one can reconstruct the time and date of each meas urement stored in the datalog. there are two alternatives to the way the ds1921g will behave after the 2048 bytes of datalog memory is filled with data. with rollover disabled (ro = 0), th e device will fill the datal og memory with the first 2048 mission samples. additional mission samples are not logged in the datalog, but the histogram, and temperature alarm ram continue to update. with ro llover enabled (ro = 1), the datalog will wrap around, and overwrite previous data st arting at 1000h for the every 2049 th mission sample. in this mode the device stores the last 2048 mission samples. for the temperature histogram, the ds1921g provides 63 bins that begin at memory address 0800h. each bin consists of a 16-bit, non-rolling- over binary counter that is increm ented each time a temperature value acquired during a mission falls into the ra nge of the bin. the leas t significant byte of ea ch bin is stored at the lower address. bin 0 begins at memory a ddress 0800h, bin 1 at 0802h, and so on up to 087ch for bin 62, as shown in figure 7. the number of the bin to be updated after a temp erature conversion is determined by cutting off the two l east significant bits of the binary temperature value. out of range values are range locked and counted as 00h or fah.
ds1921g thermochron i button 13 of 45 figure 7. histogram bin and temperature cross-reference temperature reading temp. equiv. in c histogram bin number histogram bin address 00h -40.0 or lower 0 800h to 801h 01h -39.5 0 800h to 801h 02h -39.0 0 800h to 801h 03h -38.5 0 800h to 801h 04h -38.0 1 802h to 803h 05h -37.5 1 802h to 803h 06h -37.0 1 802h to 803h 07h -36.5 1 802h to 803h 08h -36.0 2 804h to 805h f3h +81.5 60 878h to 879h f4h +82.0 61 87ah to 87bh f5h +82.5 61 87ah to 87bh f6h +83.0 61 87ah to 87bh f7h +83.5 61 87ah to 87bh f8h +84.0 62 87ch to 87dh f9h +84.5 62 87ch to 87dh fah +85.0 or higher 62 87ch to 87dh since each data bin is 2 bytes it can increment up to 65535 times. additional measurements for a bin that has already reached its maximum value will not be c ounted; the bin counter will remain at its maximum value. with the fastest sample rate of one sample ev ery minute, a 2-byte bin is sufficient for up to 45 days if all temperature readings fall into the same bin. temperature alarm logging for some applications it may be essential to not only record temperature over time and the temperature histogram, but also record when exactly the temperature has exceeded a predefined tolerance band and for how long the temperature stayed outside the desira ble range. the ds1921g can log high and low durations. the tolerance band is sp ecified by means of the temperat ure alarm thres hold registers, addresses 20bh and 20ch in the register page. one can set a high and a low temperature threshold. see section temperature conversion for the data format the temperature has to be written in. as long as the temperature values stay within the tolerance band (i .e., are higher than the low threshold and lower than the high threshold), the ds1921g will not record any temperature alarm. if the temperature during a mission reaches or exceeds either threshold, the ds 1921g will generate an alarm and set either the temperature high flag (thf) or th e temperature low flag (tlf) in the status register (address 214h). this way, if the search conditions (address 20eh) ar e set accordingly, the master can quickly identify devices with temperature alarms by mean s of the conditional search function (see rom function commands ). the device also generates a time stamp of wh en the alarm occurred and begins recording the duration of the alarming temperature. time stamps and durations where the temperature le aves the tolerance band are stored in the address range 0220h to 027fh, as shown in figur e 8. this allocation allows reco rding 24 individual alarm events and periods (12 periods for too hot and 12 for too cold). the date and time of each of these periods can be determined from the mission time stamp and the time distance between each temperature reading.
ds1921g thermochron i button figure 8. alarm time stamps and durations address map address description alarm event 0220h mission samples counter low byte 0221h mission samples counter center byte low alarm 1 0222h mission samples counter high byte 0223h alarm duration counter 0224h to 0227h alarm time stamp and duration low alarm 2 0228h to 024fh alarm time stamp and durations low alarms 3 to 12 0250h mission samples counter low byte 0251h mission samples counter center byte high alarm 1 0252h mission samples counter high byte 0253h alarm duration counter 0254h to 0257h alarm time stamp and duration high alarm 2 0258h to 027fh alarm time stamp and durations high alarms 3 to 12 the alarm time stamp is a copy of the mission samp les counter when the alar m first occurred. the least significant byte is stored at the lower address. one address higher than the time stamp the ds1921g maintains a 1-byte duration counter that stores the number of samples the temperature was found to be beyond the threshold. if this counter has reached its limit after 255 consecutive temperature readings and the temperature has not yet returned to within the tolerance band, the de vice will issue another time stamp at the next higher alarm location and open another counter to record the duration. if the temperature returns to normal before the count er has reached its limit, the duration counter of the particular time stamp will not increment any further. should the temp erature again cross this threshold, it will be recorded at the next available alarm location. this algorithm is implemented for the low as well as for the high temperature threshold. missioning the typical task of the ds1921g is recording the temperature of a te mperature-sensitive object. before the device can perform this function, it needs to be configured. this proce dure is called missioning. first of all, ds1921g needs to have its rtc set to valid time and date . this reference time may be utc (also called gmt, greenwich mean time) or any other time standard that was chosen for the application. the clock must be running (eosc = 0) for at leas t one second. setting a rtc alarm is optional. the memory assigned to storing alarm time stamps and durations, temperature histogram, as well as the mission time stamp, mission samples counter, mission start delay and sample rate must be cleared using the memory clear command. in case there were temperature alarms in the previous mission, the tlf and thf flags need to be cleared manually. to en able the device for a missi on, the em flag must be set to 0. these are general settings that have to be ma de regardless of the type of object to be monitored and the duration of the mission. next, the low temperature and high temperature thre sholds to specify the temperature tolerance band must be defined. how to convert a te mperature value into the binary code to be written to the threshold registers is described under temperature conversion earlier in this document. 14 of 45
ds1921g thermochron i button 15 of 45 the state of the search condition bits in the cont rol register does not affect the mission. if multiple devices are connected to form a 1-wire net, the set ting of the search condition will enable devices to participate in the conditional search if certain events such as timer or temperature alarm have occurred. details on the search conditi ons are found in the section rom function commands later in this document and in the control register description. the setting of the ro bit (rollover enable) and sample rate depends on the duration of the mission and the monitoring requirements. if the most recent temper ature history is important , the rollover should be enabled (ro = 1). otherwise, one should estimate the duration of the mission in minutes and divide the number by 2048 to calculate the value of the sample rate (number of minutes between temperature conversions). if the estimated duration of a mission is 10 days (= 14400 minutes) for example, then the 2048-byte capacity of the datalog memory would be suffi cient to store a new value every 7 minutes. if the datalog memory of the ds1921g is not large enough to store all temperatur e readings, one can use several devices and set the mission start delay to values that make the second device start recording as soon as the memory of the first device is full, and so on. the ro-bit needs to be set to 0 to disable rollover that would otherwise overwr ite the recorded temperature log. after the ro bit and the mission start delay are set, the sample rate register is the last element of data that is written. the sample rate may be any valu e from 1 to 255, coded as an unsigned 8-bit binary number. as soon as the sample rate is written, the ds1921g will set the mip flag and clear the memclr flag. after as many minute s as specified by the mission start delay are over, the device will wait for the next minute boundary, then wake up, copy the current time and date to the mission time stamp register, and make the firs t temperature conversion of the mission. this increments both the mission samples counter and device samples counter . all subsequent temperature measurements are taken on minute boundaries specified by the value in the sample rate register. one may read the memory of the ds1921g to watch the mission as it pr ogresses. care should be taken to avoid memory access conflicts. see section memory access conflicts for details. memory/control fu nction commands the memory/control function flow chart (figure 10) describes the protocols necessary for accessing the memory and the special functi on registers of the ds1921g. an example on how to use these and other functions to set up the ds1921g for a mission is included at the end of this document, preceding the electrical characteristics section. the communication between master and ds1921g takes place either at regular speed (default, od = 0) or at over drive speed (od = 1). if not explicitly set into the overdrive mode, the ds1921g assumes regular sp eed. internal memory access during a mission has priority over external access through the 1-wire interface. this can affect the read memory commands described below. see section memory access conflicts for details. address registers a nd transfer status because of the serial data transfer, the ds1921g em ploys three address registers, called ta1, ta2, and e/s (figure 9). registers ta1 and ta2 must be loaded with the target address to which the data will be written or from which data will be sent to the master upon a read co mmand. register e/s acts like a byte counter and transfer status register. it is used to verify data integrity with write commands. therefore, the master only has read access to this register. the lower 5 bits of the e/s register indicate the address of the last byte that has been written to the scratchpad. this address is called endi ng offset. bit 5 of the e/s register, called pf or ?partial byte fla g,? is set if the number of data bits sent by the master is not an integer multiple of 8. bit 6 is always a 0. note that th e lowest 5 bits of the target address also determine the address within the scratchpad, where intermediate storage of data will begin. this address is called byte offset. if the target address for a write command is 13ch, for example, then the scratchpad will store
ds1921g thermochron i button 16 of 45 incoming data beginning at the byte offset 1ch and will be full after only 4 bytes. th e corresponding ending offset in this example is 1fh. for best economy of speed and efficienc y, the target address for writing should point to the beginning of a new page, (i .e., the byte offset will be 0). thus, the full 32-byte capacity of the scratchpad is availabl e, resulting also in the ending offs et of 1fh. however, it is possible to write 1 or several contiguous bytes somewhere wi thin a page. the ending o ffset together with the partial and overflow flag is mainly a means to s upport the master checking th e data integrity after a write command. the highest valued bit of the e/ s register, called aa or authorization accepted, indicates that a valid copy command for the scratc hpad has been received and executed. writing data to the scratchpad clears this flag. figure 9. addre ss registers bit # 7 6 5 4 3 2 1 0 target address (ta1) t7 t6 t5 t4 t3 t2 t1 t0 target address (ta2) t15 t14 t13 t12 t11 t10 t9 t8 ending address with data status (e/s) (read only) aa 0 pf e4 e3 e2 e1 e0 writing with verification to write data to the ds1921g, the scratchpad has to be used as intermediate st orage. first the master issues the write scratchpad command to specify the de sired target address, foll owed by the data to be written to the scratchpad. in the next step, the ma ster sends the read scratchpad command to read the scratchpad and to verify data in tegrity. as preamble to the scra tchpad data, the ds1921g sends the requested target address ta1 and ta2 and the contents of the e/s register. if the pf flag is set, data did not arrive correctly in the scratc hpad. the master does not need to co ntinue reading; it can start a new trial to write data to the scratchpad. similarly, a set aa flag indicates that the write command was not recognized by the device. if everyt hing went correctly, both flags ar e cleared and the ending offset indicates the address of the last byte written to th e scratchpad. now the master can continue verifying every data bit. after the master has verified the data, it has to send the copy scratchpad command. this command must be followed exactly by the data of th e three address registers ta1, ta2 and e/s as the master has read them verifying the scratchpad. as soon as the ds1921g has received these bytes, it will copy the data to the requ ested location beginning at the target address. write scratchpad command [0fh] after issuing the write scratchpad command, the master must first pr ovide the 2-byte target address, followed by the data to be written to the scratchpad. the data will be wr itten to the scratchpad starting at the byte offset (t4:t0). the ending offset (e4:e0) w ill be the byte offset at which the master stops writ- ing data. only full data bytes are ac cepted. if the last data byte is in complete, its content will be ignored and the partial byte flag (pf) will be set. when executing the write scratchpad command, the crc generator inside the ds1921g (see figure 16) calculates a crc of the entire data stream, starting at the command code and ending at the last data byte sent by the master. this crc is generated usi ng the crc16 polynomial by first clearing the crc
ds1921g thermochron i button 17 of 45 generator and then shifting in th e command code (0fh) of the write scratchpad command, the target addresses ta1 and ta2 as supplied by the master and all the data byt es. the master may end the write scratchpad command at any time. however, if the e nding offset is 11111b, the master may send 16 read time slots and will receive an inverted crc16 generated by the ds1921g. the range 200h to 213h of the register page is protected during a mission. see figure 6, register page map , for the access type of the individual registers between and during missions. read scratchpad command [aah] this command is used to verify scratchpad data and target address. after issuing the read scratchpad command, the master begins reading. the first 2 bytes w ill be the target address. the next byte will be the ending offset/data status byte (e/s) followed by the scra tchpad data beginning at th e byte offset (t4:t0), as shown in figure 9. regardless of the actual ending offset, the master may read data until the end of the scratchpad after which it will receive an inverted crc16 of the command code, target addresses ta1 and ta2, the e/s byte, and th e scratchpad data starting at the target address. after the crc is read, the bus master will read logical 1s from the ds1921g until a reset pulse is issued. copy scratchpad [55h] this command is used to copy data from the scratc hpad to the writable memory sections. applying copy scratchpad to the sample rate register can start a mission provided that seve ral preconditions are met. see mission start and logging process description and the flow chart in figure 11 for details. after issuing the copy scratchpad command, the master must provide a 3-byte authorization pattern, which can be obtained by reading the scratchpad for verification. this pattern must exactly match the data contained in the three address registers (t a1, ta2, e/s, in that order). if the pattern matches, the aa (authorization accepted) flag will be set and the copy will begin. a pattern of alternating 1s and 0s will be transmitted after the data has been copied until th e master issues a reset pulse. while the copy is in progress any attempt to reset the part will be ignored. copy typically takes 2s per byte. the data to be copied is determined by the three a ddress registers. the scratc hpad data from the begin- ning offset through the ending offset w ill be copied, starting at the target address. anywhere from 1 to 32 bytes may be copied to memory with this command. the aa flag will remain at lo gic 1 until it is cleared by the next write scratchpad command. note that c opy scratchpad when applied to the address range 200h to 213h during a mission will end the mission. read memory [f0h] the read memory command may be us ed to read the entire memor y. after issuing the command, the master must provide the 2-byte target address. after the 2 bytes, the ma ster reads data beginning from the target address and may continue until the end of memo ry, at which point logic 0s will be read. it is im- portant to realize that the target address registers w ill contain the address provided. the ending offset/data status byte is unaffected. the hardware of the ds1921g provides a means to acco mplish error-free writing to the memory section. to safeguard data in the 1-wire environment when reading and to simultaneously speed up data transfers, it is recommended to packetize data into data packets of the size of one memory page each. such a packet would typically store a 16-bi t crc with each page of data to ensure rapid, error-free da ta transfers that eliminate having to read a page multiple times to veri fy whether if the received data is correct. (see application note 114 for the recommended file structure.)
ds1921g thermochron i button figure 10-1. memory/control function flow chart master tx memory or control fkt. command 0fh write scratch p ad ds1921 sets scratch- pad offset = (t4:t0) and clears ( pf, aa ) master tx data byte to scratch p ad offset ds1921 sets (e4:e0) = scratch p ad offset master tx reset? scratch- pad offset = 11111b? master rx crc16 of command, address, data ds1921 incre- ments scratch- p ad offset master rx "1"s master tx reset? master tx reset? partial byte written? pf = 1 aah read scratch p ad master rx ending offset with data status ( e/s ) master tx reset? scratch- pad offset = 11111b? master rx crc16 of command, address data, e/s byte, and data starting at the target address ds1921 incre- ments scratch- p ad offset master rx "1"s master tx reset? ds1921 sets scratch- p ad offset = ( t4:t0 ) master rx data byte from scratch p ad offset from rom functions flow chart ( fi g ure 13 ) to rom functions flow chart ( fi g ure 13 ) n y n y n y n y n y n y y n y n y n y ds1921 sets emclr = 0 master tx ta1 ( t7:t0 ) , ta2 ( t15:t8 ) ds1921 sets emclr = 0 master rx ta1 ( t7:t0 ) , ta2 ( t15:t8 ) to figure 10 2 nd part n from figure 10 2 nd part 18 of 45
ds1921g thermochron i button figure 10-2. memory/control function flow chart to figure 10 3 rd part 55h copy scratch p ad master tx e/s b y te authorization code match? ds1921 copies scratchpad data to memor y copying finished master tx reset? master tx reset? aa = 1 f0h read memor y master tx reset? end of memory? master rx "0"s ds1921 sets memory address = ( t15:t0 ) master rx data byte from memor y address master tx ta1 ( t7:t0 ) , ta2 ( t15:t8 ) master rx "1"s ds1921 tx "0" ds1921 tx "1" master tx reset? master rx "1"s master tx ta1 ( t7:t0 ) , ta2 ( t15:t8 ) ds1921 incre- ments address counter n y n y n y n y n y n y n y n y n y ds1921 sets emclr = 0 ds1921 sets emclr = 0 from figure 10 1 st part to figure 10 1 st part from figure 10 3 rd part 19 of 45
ds1921g thermochron i button figure 10-3. memory/control function flow chart a5h read mem. w/crc ds1921 sets memory address = ( t15:t0 ) master rx data byte from memor y address end of memory? y master tx reset? crc ok? ds1921 incre- ments address counter end of page? master rx crc16 of command, address, data (1 st pass); crc16 of data ( subse q uent passes ) master tx reset n y n y y n decision made b y ds1921 decision made b y master master tx ta1 ( t7:t0 ) , ta2 ( t15:t8 ) ds1921 sets emclr = 0 from figure 10 2 nd part to figure 10 2 nd part to figure 10 4 th part from figure 10 4 th part n n y master rx 00 b y te 20 of 45
ds1921g thermochron i button figure 10-4. memory/control function flow chart 3ch clear memor y emclr = 1? ds1921 clears mission time stamp, mission samples counter, mission start delay, sam p le rate re g ister ds1921 sets emclr = 0 44h convert tem p . master tx reset? ds1921 starts temperature conversion process master tx reset? mission in progress? n y n y n y n y n y n y ds1921 sets memclr = 1 ds1921 clears histo g ram memor y ds1921 clears alarm time stam p s and durations ds1921 sets emclr = 0 master tx reset? n y from figure 10 3 rd part to figure 10 3 rd part ds1921 sets tcb\ = 0 ds1921 performs a tem p . conversion ds1921 copies result to address 0211h ds1921 sets tcb\ = 1 temperature con- version process end of process 21 of 45
ds1921g thermochron i button 22 of 45 read memory with crc [a5h] the read memory with crc command is used to read memory data that cannot be packetized, such as the register page and the data recorded by the device during a mi ssion. the command works essentially the same way as the simple read memory, except for the 16-bit crc that the ds1921g generates and transmits following the last data byte of a memory page. after having sent the command code of the read memory with crc command, the bus master sends a 2- byte address (ta1 = t7:t0, ta2 = t15:t8) that indicat es a starting byte location. with the subsequent read data time slots the master receives data fr om the ds1921g starting at the initial address and continuing until the end of a 32-byte page is reached. at that point the bus master will send 16 additional read data time slots and receive an inverted 16-bit crc. with subsequent read data time slots the master will receive data starting at the beginning of the next page followed again by the inverted crc for that page. this sequence will continue until the bus master resets the device. with the initial pass through the read memory with crc flow, the 16-bit crc value is the result of shifting the command byte into the cleared crc generator followed by the 2 address bytes and the contents of the data memory. subsequent passes th rough the read memory with crc flow will generate a 16-bit crc that is the result of clearing the crc generator and then shif ting in the contents of the data memory page. after the 16-bit crc of th e last page is read, the bus mast er will receive logical 0s from the ds1921g and inverted crc16s at page boundaries until a reset pulse is i ssued. the read memory with crc command sequence can be ended at any point by issuing a reset pulse. clear memory [3ch] the clear memory command is used to clear the sample rate, mission st art delay, mission time stamp, and mission samples counter in the register page and the temperature alarm memory and the temperature histogram memory. these memory areas must be cleared for the device to be set up for another mission. the clear memory command does not cl ear the datalog memory or the temperature and timer alarm flags in the status re gister. the rtc oscillator must be on and have counted at least 1 second, before issuing the command. for the clear memory command to function the emclr bit in control register must be set to 1, and the clear me mory command must be issued with the very next access to the device?s memory functions. issuing a ny other memory function command will reset the emclr bit. the clear memory pro cess takes 500s. when the command is completed the memclr bit in the status register will read 1 and the emclr bit will be 0. convert temperature [44h] if a mission is not in progress (mip = 0) the convert temperature command can be issued to measure the current temperature of the device. the result of the temperature conversion will be found at memory address 211h in the register page. this command takes maximum 90ms to complete. during this time the device remains fully accessible for memo ry/control and rom function commands.
ds1921g thermochron i button mission start and logging process the ds1921g does not use a special command to star t a mission. instead, a mi ssion is started by writing a non-zero value to the sample ra te register using the copy scratc hpad command. as shown in figure 11, a new mission can only be started if the previous mission has been stopped (mip = 0), the memory is cleared (memclr = 1) and the mission is enabled (em = 0). if the new sample rate is different from zero, the value will be copied to the sample rate regist er. at the same time the mip bit will be set and the memclr bit will be cleared to in dicate that the device is on a mi ssion. next the missi on start delay counter will start decrementing every minute until it is down to 0. now the ds1921g will wait until the next minute boundary and start the logging process, whic h as its first action copies the applicable rtc registers to the mission time stamp. figure 11. mission start and logging process the mission start process is invoked when the copy scratchpad function is used to set a new sample rate by writing to the sample rate register at address 020dh. one minute after the start delay countdown is over, the logging process begins and the mission start process ends. logging process ds1921 sets datalog address = 1000h ds1921 measures tem p erature ds1921 updates his- togram, device sam- ples counter, mission samples counter and alarm, if a pp licable ro = 1? ds1921 stores temp. at datalo g address ds1921 increments lower 11 bits of datalo g address ds1921 stores temp. at datalo g address ds1921 increments datalo g address datalog address = 1800h? ds1921 waits one sample period mip = 1? end of process y y n n n y n ds1921 copies new sample rate from scratchpad to sample rate re g ister n y n y n ds1921 sets mip = 1; memclr = 0 mip = 1? memclr = 1 em = 0? new sample rate = 0? start delay counter = 0? mission start process ds1921 decrements start dela y counter ds1921 waits until next minute boundar y ds1921 copies rtc to mission time stam p end of process ds1921 sets mip = 0 y n y y n mip = 1? y ds1921 logging process ds1921 waits until next minute boundar y 23 of 45
ds1921g thermochron i button 24 of 45 stop mission the ds1921g does not have a specia l command to stop a mission. a mi ssion can be stopped at any time by writing to any address in the range of 0200h to 0213h or by writing the mip bit of the status register at address 0214h to 0. either appr oach involves the use of the copy scratchpad command. there is no need for the mission start delay to expire be fore a mission can be st opped (see figure 11). memory access conflicts while a mission is in progress, periodically a temperat ure sample is taken and st ored in the datalog, his- togram, and potentially alarm memor y. this "internal activity" has priori ty over a read memory or read memory with crc access to these pages. if a conflict occurs, the data read may be invalid, even if the crc value matches the data. to ensure that the data r ead is valid, it is recommende d to first read the sip bit of the status register. if the sip bit is set, delay reading the datalog, histogram, and alarm memory until sip is 0. the interference is more likely to be seen with a high sample rate (1 sample every minute). since all mission samples occur on the seconds rollover (59 to 00), memory conflicts can be avoided by first reading the rtc seconds counter. for example, if it takes two seconds to read the datalog, then avoid starting the memory read if the s econds counter is 58, 59 or 00. alternat ively, one can read the affected memory section twice and accept the da ta only if both readings match. in any case, when writing driver software, it is important to know a bout the possibility of interference and to take m easures to work around it. 1-wire bus system the 1-wire bus is a system that has a single bus master and one or more slaves. in all instances the ds1921g is a slave device. the bus master is typical ly a microcontroller. the discussion of this bus system is broken down into three topics: hardware conf iguration, transaction sequence, and 1-wire signaling (signal types and timing). the 1-wire protocol defines bus trans actions in terms of the bus state during specific time slots that are in itiated on the falling edge of sync pulses from the bus master. for a more detailed protocol descrip tion, refer to chapter 4 of the book of ds19xx i button standards. hardware configuration the 1-wire bus has only a single line by definition; it is important that each device on the bus be able to drive it at the appropriate time. to facilitate this, each device attached to the 1-wire bus must have open drain or tri-state outputs. the 1- wire port of the ds1921g is open-drain with an internal circuit equivalent to that shown in figure 12. a multidrop bus consists of a 1-wire bus with multiple slaves attached. at standard speed the 1-wire bus has a maximum data rate of 16.3kbits per second. th e speed can be boosted to 142kbits per second by activating the overdrive mode. the ds1921g is not guaranteed to be fully compliant to the i button standard. its maximum data rate in standard spee d mode is 15.4kbits per second and 125kbits per second in overdrive. the value of the pullup resistor prim arily depends on the network size and load conditions. the ds1921g requires a pullup resistor of maximum 2.2k at any speed. the idle state for the 1-wire bus is high. if for any reason a transaction needs to be suspended, the bus must be left in the idle state if the transaction is to resume. if this does not occur and the bus is left low for more than 16s (overdrive speed) or more than 120s (standard speed), one or more devices on the bus may be reset. note that the ds1921g does not quite meet the full 16s maximum low time of the normal 1-wire bus overdrive timing. with the ds1921g the bus must be left lo w for no longer than 15s at overdrive speed to ensure that no ds1921g on th e 1-wire bus performs a reset. the ds1921g will communicate properly when used in conjunction with a ds2480b or ds2 490 1-wire driver and adapters that are based on these driver chips.
ds1921g thermochron i button figure 12. hardware configuration open drain port pin rx = receive tx = transmit 100 mosfet v pup rx tx tx rx data r pup 5 a typ. bus master ds1921 1-wire port transaction sequence the protocol for accessing the ds1921g vi a the 1-wire port is as follows: ? initialization ? rom function command ? memory/control function command ? transaction/data initialization all transactions on the 1-wire bus begin with an initialization se quence. the initialization sequence consists of a reset pulse transmitted by the bus master followed by presence pulse(s) transmitted by the slave(s). the presence pulse lets the bus master know that the ds1921g is on the bus and is ready to operate. for more details, see the 1-wire signaling section. rom function commands once the bus master has detected a presence, it can issue one of the seven rom function commands. all rom function commands are eight b its long. a list of these commands follows (refer to flowchart in figure 13). read rom [33h] this command allows the bus master to read the ds1921g's 8-bit family code, unique 48-bit serial number and 8-bit crc. this command can only be used if there is a single slave on the bus. if more than one slave is present on the bus, a data collision will occur when all slaves try to transmit at the same time (open drain will produce a wired-and result). the resu ltant family code and 48-bit serial number will result in a mismatch of the crc. match rom [55h] the match rom command, followed by a 64-bit rom se quence, allows the bus master to address a specific ds1921g on a multidrop bus. only the ds1921g that exactly matches the 64-bit rom sequence will respond to the following memory function command. al l other slaves will wait for a reset pulse. this command can be used with a single or multiple devices on the bus. 25 of 45
ds1921g thermochron i button 26 of 45 search rom [f0h] when a system is initially brought up, the bus mast er might not know the number of devices on the 1- wire bus or their registration numbers. by taking a dvantage of the wired-and property of the bus, the master can use a process of elimination to identify th e registration numbers of all slave devices. for each bit of the registration number, starting with the least si gnificant bit, the bus master issues a triplet of time slots. on the first slot, each slave device particip ating in the search outputs the true value of its registration number bit. on the se cond slot, each slave device particip ating in the sear ch outputs the complemented value of its registration number bit. on the third slot, the master writes the true value of the bit to be selected. all slave devices that do not match the bit written by the master stop participating in the search. if both of the read bits are zero, the master knows that slave devices exist w ith both states of the bit. by choosing which state to write, the bus mast er branches in the romcode tree. after one complete pass, the bus master knows the re gistration number of a single device. additional passes identify the registration numbers of the remaini ng devices. refer to app note 187: 1-wire search algorithm for a detailed discussion, including an example. conditional search [ech] the conditional search rom command operates similarl y to the search rom command except that only devices fulfilling the specified condition will particip ate in the search. the condition is specified by the bit functions tas, ths, and tls in the control register, address 20eh. th e conditional search rom provides an efficient means for the bus master to de termine devices on a multidrop system that have to signal an important event, such as a temperature leaving the tole rance band. after each pass of the conditional search that successfully determined th e 64-bit rom code for a specific device on the multidrop bus, that particular device can be indivi dually accessed as if a match rom had been issued, since all other devices will have dropped out of the search process and will be waiting for a reset pulse. for the conditional search, one can select any combina tion of the three search conditions by writing the associated bit to a logical 1. these bits correspond di rectly to the flags in the status register of the device. if the flag in th e status register reads 1 and the corresponding bit in th e control register is a logical 1 too, the device will respond to the conditional search command. if more than one bit search condition is selected, the first event occurring w ill make the device respond to the conditional search command. skip rom [cch] this command can save time in a single-drop bus sy stem by allowing the bus master to access the memory functions without providing the 64-bit rom code. if more than one slave is present on the bus and, for example, a read command is issued follow ing the skip rom command, data collision will occur on the bus as multiple slaves transmit simultaneou sly (open drain pulldowns will produce a wired-and result).
ds1921g thermochron i button figure 13-1. rom functions flow chart to memory/control functions flow chart ( fi g ure 10 ) ds1921 tx bit 63 master tx bit 63 ds1921 tx bit 63 ds1921 tx bit 1 master tx bit 1 ds1921 tx bit 1 ds1921 tx bit 0 master tx bit 0 ds1921 tx bit 0 bit 63 match? bit 1 match? bit 0 match? f0h search rom? n y n y y n y n ds1921 tx bit 63 master tx bit 63 ds1921 tx bit 63 ds1921 tx bit 1 master tx bit 1 ds1921 tx bit 1 ds1921 tx bit 0 master tx bit 0 ds1921 tx bit 0 bit 63 match? bit 1 match? bit 0 match? cond. met? ech cond. search rom? n y n y n y y n y n master tx bit 63 master tx bit 1 master tx bit 0 bit 63 match? bit 1 match? bit 0 match? 55h match rom? n y n y y n y n ds1921 tx crc b y te ds1921 tx serial number 6 b y tes ds1921 tx family code 1 b y te 33h read rom? n y from memory/control func- tions flow chart ( fi g ure 10 ) master tx rom function command ds1921 tx presence pulse master tx reset pulse short reset pulse? n y od = 0 1 ) 1 ) 1 ) 1 ) 1 ) 1 ) 1 ) 1 ) 1 ) 1 ) 1 ) 1 ) 1 ) 1 ) 1 ) 1 ) 1 ) 1 ) 1 ) 1 ) 1 ) 1 ) 1 ) 1 ) 1 ) 2 ) 1) to be transmitted or received at overdrive speed if od = 1. 2) the presence pulse will be short if od = 1. from figure 13 2 nd part from figure 13 2 nd part to figure 13 2 nd part to figure 13 2 nd part 27 of 45
ds1921g thermochron i button figure 13-2. rom functions flow chart 3ch overdrive ski p rom? n y master tx bit 63 master tx bit 1 master tx bit 0 bit 63 match? bit 1 match? bit 0 match? 69h overdrive match? n y n y y n y n cch skip rom? n y 3 ) 3 ) 3 ) 3) always to be transmitted at overdrive speed. od = 1 master tx reset pulse? y n od = 1 to figure 13 1 st part to figure 13 1 st part from figure 13 1 st part from figure 13 1 st part 28 of 45
ds1921g thermochron i button 29 of 45 overdrive skip rom [3ch] on a single-drop bus this command can save tim e by allowing the bus master to access the memory/control functions without providing the 64-bit rom code. unlike the normal skip rom command, the overdrive skip rom sets the ds 1921g in the overdrive mode (od = 1). all communication following this command has to occur at overdrive speed until a reset pulse of minimum 480s duration resets all devices on th e bus to standard speed (od = 0). when issued on a multidrop bus this command will se t all overdrive-supporting devices into overdrive mode. to subsequently address a sp ecific overdrive-supporting device, a reset pulse at overdrive speed has to be issued followed by a match rom or s earch rom command sequence. this will speed up the time for the search process. if more than one sl ave supporting overdrive is present on the bus and the overdrive skip rom command is followed by a read command, data collision will occur on the bus as multiple slaves transmit simultaneously (open dr ain pulldowns will produce a wired-and result). overdrive match rom [69h] the overdrive match rom command followed by a 64-bit rom sequence transmitted at overdrive speed allows the bus master to address a specifi c ds1921g on a multidrop bus and to simultaneously set it in overdrive mode. only the ds1921g that exac tly matches the 64-bit rom sequence will respond to the subsequent memory/control function command. slaves already in overdrive mode from a previous overdrive skip or successful overdrive match comm and will remain in overdrive mode. all overdrive- capable slaves will return to st andard speed at the next reset pu lse of minimum 480s duration. the overdrive match rom command can be used with a single or multiple devices on the bus. 1-wire signaling the ds1921g requires strict protocols to ensure data integrity. the prot ocol consists of four types of signaling on one line: reset sequence with reset puls e and presence pulse, write 0, write 1, and read data. except for the presence pu lse the bus master initiates al l these signals. the ds1921g can communicate at two different speeds: standard speed a nd overdrive speed. if not explicitly set into the overdrive mode, the ds1921g will communicate at stan dard speed. while in overdrive mode the fast timing applies to all waveforms. to get from idle to activ e, the voltage on the 1-wire line needs to fall from v pup below the threshold v tl . to get from active to idle, the voltage needs to rise from v ilmax past the threshold v th . the time it takes for the voltage to make this rise is seen in figure 14 as ? ? and its duration depends on the pullup resistor (r pup ) used and capacitance of the 1-wire network attached. the voltage v ilmax is relevant for the ds1921g when determining a logical level, but not for triggering any events. the initialization sequence required to begin any communication with the ds1921g is shown in figure 14. a reset pulse followed by a presence pulse indicates the ds1921g is ready to receive data, given the correct rom and memory function command. if the bu s master uses slew-rate control on the falling edge, it must pull down the line for t rstl + t f to compensate for the edge. a t rstl duration of 480s or longer will exit the overdrive mode returning the device to sta ndard speed. if the ds1921g is in overdrive mode and t rstl is no longer than 80s, the device will remain in overdrive mode.
ds1921g thermochron i button figure 14. initialization procedur e (reset and presence pulses) resistor master ds1921g t rstl t pdl t rsth t pdh master tx reset pulse master rx presence pulse v pup v ihmaster v th v tl v ilmax 0v t f t rec t msp after the bus master has released the line it goes into receive mode (rx). now, the 1-wire bus is pulled to v pup via the pullup resistor or, in case of a ds2480b driver, by active circuitry. when the threshold v th is crossed, the ds1921g waits for t pdh and then transmits a presence pulse by pulling the line low for t pdl . to detect a presence pulse, the master must te st the logical state of the 1-wire line at t msp . the t rsth window must be at least the sum of t pdhmax , t pdlmax , and t recmin . immediately after t rsth is expired, the ds1921g is ready for data comm unication. in a mixed population network, t rsth should be extended to minimum 480s at sta ndard speed and 48s at overdriv e speed to accommodate other 1- wire devices. read/write time slots data communication with the ds1921g takes place in time slots that carry a si ngle bit each. write time slots transport data from bus master to slave. read time-slots transfer data from slave to master. the definitions of the write and read time slots are illustrated in figure 15. all communication begins with the master pulling the data line low. as the voltage on the 1-wire line falls below the threshold v tl , the ds1921g starts its internal timing generator that determines when the data line will be sampled during a write time slot and how long data will be valid during a read time slot. master to slave for a write-one time slot, the voltage on the data line must have crossed the v th threshold after the write-one low time t w1lmax is expired. for a write-zero time slot, the voltage on the data line must stay below the v th threshold until the write-zero low time t w0lmin is expired. the voltage on the data line should not exceed v ilmax during the entire t w0l or t w1l window. after the v th threshold has been crossed, the ds1921g needs a recovery time t rec before it is ready for the next time slot. 30 of 45
ds1921g thermochron i button figure 15. read/write timing diagram write-one time slot resistor master v pup v ihmaster v th v tl v ilmax 0v t f t slot t w1l write-zero time slot resistor master t rec v pup v ihmaster v th v tl v ilmax 0v t f t slot t w0l read-data time slot resistor master ds1921g t rec v pup v ihmaster v th v tl v ilmax 0v master sampling window t f t slot t rl t msr slave to master a read-data time slot begins like a write- one time slot. the voltage on the data line must remain below v tl until the read low time t rl is expired. during the t rl window, when responding with a 0, the ds1921g will start pulling th e data line low; its internal timing ge nerator determines when this pulldown ends and the voltage starts rising again. when re sponding with a 1, the ds1921g will not hold the data line low at all, and the voltage starts rising as soon as t rl is over. 31 of 45 the sum of t rl + (rise rime) on one side and the internal timing generator of the ds1921g on the other side define the master sampling window (t msrmin to t msrmax ) in which the master must perform a read from the data line. for most reliable communication, t rl should be as short as permissible and the master should read close to but no later than t msrmax . after reading from the data line, the master must wait until t slot is expired. this guarantees sufficient recovery time t rec for the ds1921g to get ready for the next time slot.
ds1921g thermochron i button 32 of 45 crc generation with the ds1921g there are two different types of cyclic redundancy checks (crcs). one crc is an 8-bit type and is stored in the most significant byte of the 64-bit ro m. the bus master can compute a crc value from the first 56 bits of the 64-bit rom and compare it to the value stored within the ds1921g to determine if the rom data has been received error-free. the equivalent polynomial function of this crc is x 8 + x 5 + x 4 + 1. this 8-bit crc is received in the true (non-inverted) form. it is computed at the factory and lasered into the rom. the other crc is a 16-bit type, ge nerated according to the standard ized crc16-polynomial function x 16 + x 15 + x 2 + 1. this crc is used for error detection when reading data memory using the read memory with crc command and for fast ve rification of a data transfer when writing to or reading from the scratchpad. in contrast to the 8-b it crc, the 16-bit crc is always communicated in the inverted form. a crc-generator inside the ds1921g chip (figure 16) will calculate a new 16-bit crc as shown in the command flow chart of figure 10. the bus master compares the crc value read from the device to the one it calculates from the data and decides whether to continue with an operati on or to reread the portion of the data with the crc e rror. with the initial pass through the read memory with crc flow chart, the 16-bit crc value is the result of shifting the command byte into the cleared crc generator, followed by the 2 address bytes and the data bytes. subsequent passes through the read memory with crc flow chart will generate a 16-bit crc that is the result of clea ring the crc generator and th en shifting in the data bytes . with the write scratchpad command the crc is gene rated by first clearing th e crc generator and then shifting in the command code, the target addresse s ta1 and ta2 and all the data bytes. the ds1921g will transmit this crc only if the da ta bytes written to the scratchpad include scratchpad ending offset 11111b. the data may start at any location within the scratchpad. with the read scratchpad command the crc is gene rated by first clearing th e crc generator and then shifting in the command code, the target addresses ta1 and ta2, the e/s byte, and the scratchpad data starting at the target a ddress. the ds1921g will transmit this crc only if the reading continues through the end of the scratchpad, regard less of the actual ending offset. for more information on generating crc values see application note 27 or the book of ds19xx i button standards.
ds1921g thermochron i button figure 16. crc-16 hardware description and polynomial pol y nomial = x 16 + x 15 + x 2 + 1 x 0 x 1 x 2 x 3 x 4 x 5 x 6 x 7 x 8 x 9 x 10 x 11 x 12 x 13 x 14 x 15 x 16 1 st stage 2 nd stage 3 rd stage 4 th stage 6 th stage 5 th stage 7 th stage 8 th stage 9 th stage 10 th stage 11 th stage 12 th stage 13 th stage 14 th stage 15 th stage 16 th stage input dat a crc output command-specific 1-wire communication protocol ? legend symbol description rst 1-wire reset pulse generated by master pd 1-wire presence pulse generated by slave select command and data to satisfy the rom functi on protocol (skip rom, search rom, etc.) ws command "write scratchpad" rs command "read scratchpad" cps command "copy scratchpad" rm command "read memory" rmc command "read memory with crc" cm command "clear memory" ct command "convert temperature" ta target address ta1, ta2 ta-e/s target address ta1, ta2 with e/s byte transfer of as many data bytes as are needed to reach the scratchpad offset 1fh transfer of as many data bytes as are needed to reach the end of a memory page transfer of as many data bytes as are needed to reach the end of the datalog memory <00 to eop> transfer of as many 00h bytes as are needed to reach a memory page boundary <32 bytes> transfer of 32 bytes transfer of an undetermined amount of data crc16\ transfer of an inverted crc16 ff loop indefinite loop where the master reads ffh bytes aa loop indefinite loop where the master reads aah bytes 00 loop indefinite loop where the master reads 00h bytes 33 of 45
ds1921g thermochron i button command-specific 1-wire communication protocol ? color codes master to slave slave to master write scratchpad, reaching the end of the scratchpad rst pd select ws ta crc16\ ff loop write scratchpad, not reaching the end of the scratchpad rst pd select ws ta rst pd read scratchpad rst pd select rs ta-e/s crc16\ ff loop copy scratchpad (success) rst pd select cps ta-e/s aa loop copy scratchpad (invalid ta-e/s) rst pd select cps ta-e/s ff loop read memory (success) rst pd select rm ta 00 loop read memory (invalid address) rst pd select rm ta 00 loop reading reserved pages 20 through 63 or 68 thr ough 127 or pages 192 and higher (beyond datalog memory) will result in 00h bytes. read memory with crc (success) rst pd select rmc ta crc16\ <32 bytes> crc16\ 34 of 45 the "32 bytes" are either valid page data or 00h bytes when reading reserved pages 20 through 63 or 68 through 127 or pages 192 and highe r (beyond datalog memory). loop
ds1921g thermochron i button read memory with crc (invalid address) rst pd select rmc ta <00 to eop> crc16\ <32 bytes> crc16\ loop the "32 bytes" are all 00h. clear memory rst pd select cm ff loop to verify success, read the status register at address 0214h. if memclr is 1, the command was executed successfully. convert temperature rst pd select ct ff loop to read the result and to verify success, read the addresses 0211h (result) and the device samples counter at address 021dh to 021fh. if the c ount has incremented, th e command was executed successfully. 35 of 45
ds1921g thermochron i button 36 of 45 mission example: prepare and start a new mission assumption: the previous mission has come to an end. to end an ongoing missi on write the mip bit in the status register to 0. the preparation of a ds1921g for a mission including the start of the mission requires up to four steps: step 1: set the rtc (if it needs to be adjusted) step 2: clear the data of the previous mission step 3: set the search condition and mission start delay, clear alarm flags step 4: set the temperature alarms and wr ite the sample rate to start the mission step 1 let the actual time be 15:30:00 hours on monday, the 1 st of april in 2002. this results in the following data to be written to the rtc registers: address: 200h 201h 202h 203h 204h 205h 206h data: 00h 30h 15h 01h 81h 04h 02h with only a single ds1921g connected to the bus master, the communica tion of step 1 is as follows: master mode data (lsb first) comments tx (reset) reset pulse (480 s to 960s) rx (presence) presence pulse tx cch issue skip rom command tx 0fh issue write scratchpad command tx 00h ta1, beginning offset = 00h tx 02h ta2, address = 02 00h tx <7 data bytes> write 7 bytes of data to scratchpad tx (reset) reset pulse rx (presence) presence pulse tx cch issue skip rom command tx aah issue read scratchpad command rx 00h read ta1, beginning offset = 00h rx 02h read ta2, address = 02 00h rx 06h read e/s, ending offset = 6h, flags = 0h rx <7 data bytes> read scratchpad data and verify tx (reset) reset pulse rx (presence) presence pulse tx cch issue skip rom command tx 55h issue copy scratchpad command tx 00h tx 02h tx 06h ta1 ta2 (authorization code) e/s tx (reset) reset pulse rx (presence) presence pulse
ds1921g thermochron i button 37 of 45 step 2 set the emclr bit to 1, enable the rtc and th en execute the clear memory command. the rtc oscillator must be stable before the clear memory command is issued. wait 500 s after issuing the clear memory command before proceeding to step 3. this re sults in the following data to be written to the status register: address: 20eh data: 40h with only a single ds1921g connected to the bus master, the communica tion of step 2 is as follows: master mode data (lsb first) comments tx (reset) reset pulse (480 s to 960s) rx (presence) presence pulse tx cch issue skip rom command tx 0fh issue write scratchpad command tx 0eh ta1, beginning offset = 0eh tx 02h ta2, address = 02 0eh tx 40h write status byte to scratchpad tx (reset) reset pulse rx (presence) presence pulse tx cch issue skip rom command tx aah issue read scratchpad command rx 0eh read ta1, beginning offset = 0eh rx 02h read ta2, address = 02 0eh rx 0eh read e/s, ending offset = 0eh, flags = 0h rx 40h read scratchpad data and verify tx (reset) reset pulse rx (presence) presence pulse tx cch issue skip rom command tx 55h issue copy scratchpad command tx 0eh tx 02h tx 0eh ta1 ta2 (authorization code) e/s tx (reset) reset pulse rx (presence) presence pulse tx cch issue skip rom command tx 3ch issue clear memory command tx (reset) reset pulse rx (presence) presence pulse
ds1921g thermochron i button 38 of 45 step 3 in this example, the rollover is disabled and the s earch condition is set for a high temperature only. the mission is to start with a delay of 90 (005ah) mi nutes and the alarm flags tlf, thf, and taf are cleared. this results in the following data to be written to the speci al function registers: address: 20eh 20fh 210h 211h 212h 213h 214h data: 02h 00h* 00h* 00h* 5ah 00h 00h * writing through address locations 20fh to 211h is faster than accessing the mission start delay register in a separate cycle. the write attempt has no effect on the contents of these registers. with only a single ds1921g connected to the bus master, the communica tion of step 3 is as follows: master mode data (lsb first) comments tx (reset) reset pulse (480 s to 960s) rx (presence) presence pulse tx cch issue skip rom command tx 0fh issue write scratchpad command tx 0eh ta1, beginning offset = 0eh tx 02h ta2, address = 02 0eh tx <7 data bytes> write 7 bytes of data to scratchpad tx (reset) reset pulse rx (presence) presence pulse tx cch issue skip rom command tx aah issue read scratchpad command rx 0eh read ta1, beginning offset = 0eh rx 02h read ta2, address = 02 0eh rx 14h read e/s, ending offset = 14h, flags = 0h rx <7 data bytes> read scratchpad data and verify tx (reset) reset pulse rx (presence) presence pulse tx cch issue skip rom command tx 55h issue copy scratchpad command tx 0eh tx 02h tx 13h ta1 ta2 (authorization code) e/s tx (reset) reset pulse rx (presence) presence pulse
ds1921g thermochron i button 39 of 45 step 4 in this example, the temperature alarms are set to -5 c for the low temperature threshold and 0 c for the high temperature threshold. the samp le rate is once every 10 minutes, allowing the mission to last up to 14 days. this results in the following data to be written to the speci al function registers: address: 20bh 20ch 20dh data: 46h 50h 0ah with only a single ds1921g connected to the bus master, the communica tion of step 4 is as follows: master mode data (lsb first) comments tx (reset) reset pulse (480 s to 960s) rx (presence) presence pulse tx cch issue skip rom command tx 0fh issue write scratchpad command tx 0bh ta1, beginning offset = 0bh tx 02h ta2, address = 02 0bh tx <3 data bytes> write 3 bytes of data to scratchpad tx (reset) reset pulse rx (presence) presence pulse tx cch issue skip rom command tx aah issue read scratchpad command rx 0bh read ta1, beginning offset = 0bh rx 02h read ta2, address = 02 0bh rx 0dh read e/s, ending offset = 0dh, flags = 0h rx <3 data bytes> read scratchpad data and verify tx (reset) reset pulse rx (presence) presence pulse tx cch issue skip rom command tx 55h issue copy scratchpad command tx 0bh tx 02h tx 0dh ta1 ta2 (authorization code) e/s tx (reset) reset pulse rx (presence) presence pulse if step 4 was successful, the mip bit in the status re gister will be 1, the memclr bit will be 0, and the mission start delay will be counting down.
ds1921g thermochron i button 40 of 45 physical specification size see mechanical drawing weight 3.3g safety meets ul#913 (4 th edit.); intrinsically safe apparatus, approval under en tity concept for use in class i, division 1, group a, b, c, and d locations absolute maxi mum ratings* io voltage to gnd -0.5v, +6v io sink current 20ma temperature range -40c to +85c** storage temperature range -40c to +50c** * this is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the opera tion sections of this specifica tion is not implied. exposure to absolute maximum rating conditions for extended periods of tim e may affect reliability. ** storage or operation above 50c signi ficantly reduces battery life. electrical characteristics (v pup = 2.8v to 5.25v, t a = -40c to +85c) parameter symbol conditions min typ max units notes io pin general data 1-wire pullup resistance r pup 2.2 k 1, 2 input capacitance c io 100 800 pf 3, 16 input load current i l io pin at v pup 10 a 4 high-to-low v pup > 4.5v 1.14 2.70 5, 6, 7, switching threshold v tl 0.71 2.70 v 16 input low voltage v il 0.30 v 1, 5, 8 low-to-high v pup > 4.5v 1.00 2.70 5, 6, 9, switching threshold v th 0.66 2.70 v 16 output low voltage at 4ma v ol 0.4 v 5, 10 standard speed, r pup = 2.2k 5 overdrive speed, r pup = 2.2k 2 recovery time t rec overdrive speed, directly prior to reset pulse; r pup = 2.2k 5 s 1, 16 standard speed 65 timeslot duration t slot overdrive speed 8 s 1, 15
ds1921g thermochron i button 41 of 45 parameter symbol conditions min typ max units notes io pin, 1-wire reset, presence detect cycle standard speed, v pup > 4.5v 480 640 standard speed 540 640 reset low time t rstl overdrive speed 48 80 s 1, 15 presence detect high standard speed 15 60 time t pdh overdrive speed 1.1 6 s 15 presence detect low standard speed 60 270 time t pdl overdrive speed 7.5 24 s 15 presence detect standard speed 60 75 sample time t msp overdrive speed 6 8.6 s 1, 16 io pin, 1-wire write standard speed 60 120 write-0 low time t w0l overdrive speed 6 15 s 1, 15 standard speed 5 15 - write-1 low time t w1l overdrive speed 1 2 - s 1, 11 io pin, 1-wire read standard speed 5 15 - read low time t rl overdrive speed 1 2 - s 1, 12 standard speed t rl + 15 read sample time t msr overdrive speed t rl + 2 s 1, 12 real time clock frequency deviation f -5c to +46c -48 +46 ppm temperature converter tempcore operating range t tc -40 +85 c conversion time t conv 19 90 ms thermal response time constant resp 130 s 13 -40c to <-30c -1.3 +1.3 -30c to +70c -1.0 +1.0 conversion error ? >+70c to +85c -1.3 +1.3 c 17, 18 number of conversions n conv (see graphs) --- 14, 16 notes 1) system requirement. 2) maximum allowable pullup resistance is a functi on of the number of 1-wire devices in the system and 1-wire recovery times. the specified value he re applies to systems w ith only one device and with the minimum 1-wire recovery times. for more heavily loaded systems, an active pullup such as that found in the ds2480b may be required. 3) capacitance on io could be 800pf when power is first applied. if a 2.2k resistor is used to pull up the data line, 2.5s after v pup has been applied the parasite capacitor will not affect normal communication. 4) input load is to ground. 5) all voltages are referenced to ground. 6) v tl , v th are a function of the internal supply voltage.
ds1921g thermochron i button 42 of 45 7) voltage below which, during a falling edge on io, a logic 0 is detected. 8) the voltage on io needs to be less or equal to v ilmax whenever the master drives the line low. 9) voltage above which, during a rising edge on io, a logic 1 is detected. 10) the i-v characteristic is linea r for voltages less than 1v. 11) represents the time required for the pullup ci rcuitry to pull the voltage on io up from v il to v th . 12) represents the time required for the pullup ci rcuitry to pull the voltage on io up from v il to the input high threshold of the bus master. 13) this number was derived from a test conducted by cemagref in antony, france, in july of 2000. http://www.cemagref.fr/english/index.htm test report no. e42 14) the number of temperature conversions (= sa mples) possible with th e built-in energy source depends on the operating and storage temperature of the device. when not in use for a mission, the rtc oscillator should be turned off and device should be stored at a temperature not exceeding 25c. under this condition the shelf life time is 10 years minimum. 15) highlighted numbers are not in compliance with the published i button standards. see comparison table below. 16) these values are derived from simulation acro ss process, voltage, and temperature and are not production tested. 17) total accuracy is ? plus 0.25c quantization due to the 0.5 c digital resolution of the device. 18) warning: not for use as the sole method of measuring or tracking temp erature and/or humidity in products and articles that could affect the health or safety of persons, plants, animals, or other living organisms, including but not limited to foods, beverages, pharmaceuticals, medications, blood and blood products, organs, flammable, and co mbustible products. user shall assure that redundant (or other primary) methods of testi ng and determining the handling methods, quality, and fitness of the articles and products should be implemented. temperature and/or humidity tracking with this product, where the health or safety of the af orementioned persons or things could be adversely affected, is only recommended when supplemental or redundant information sources are used. data logger products are 100% tested and calibra ted at time of manufacture by dallas semiconductor/maxim to ensure that they meet all data sheet parameters, including temperature accuracy. user shall be responsible fo r proper use and storage of this product. as with any sensor-based product, user shall also be responsible for occasionally rechecking the temperature accuracy of the product to en sure it is still operating properly. standard values ds1921g values parameter standard speed overdrive sp eed standard speed overdrive speed name min max min m ax min max min max t slot (incl. t rec ) 61s (undef.) 7s (undef.) 65s 1) (undef.) 8s 1) (undef.) t rstl 480s (undef.) 48s 80s 540s 640s 48s 80s t pdh 15s 60s 2s 6s 15s 60s 1.1s 6s t pdl 60s 240s 8s 24s 60s 270s 7.5s 24s t w0l 60s 120s 6s 16s 60s 120s 6s 15s 1) intentional change, longer rec overy time between time slots.
ds1921g thermochron i button rtc deviation vs temperature -10 -8 -6 -4 -2 0 2 4 -40-30-20-100 1020304050607080 temperature (c) rtc deviation (minutes/month) lower limit upper limit minimum product lifetime vs temperature at different sample rates 0.00 1.00 2.00 3.00 4.00 5.00 6.00 7.00 8.00 9.00 10.00 11.00 -40-30-20-10 0 1020304050607080 temperature (c) min. product lifetime (years) every minute every 3 min. every 10 min. no samples osc. off 43 of 45
ds1921g thermochron i button minimum product lifetime vs sample rate at different temperatures 0.00 1.00 2.00 3.00 4.00 5.00 6.00 7.00 8.00 9.00 10.00 11.00 1 10 100 1000 minutes between samples minimum product lifetime (years) -40c -20 c 15c 40c 45c 50c 55c 60c 70c 85c accuracy limits -2 -1.5 -1 -0.5 0 0.5 1 1.5 2 -40 -30 -20 -10 0 10 20 30 40 50 60 70 80 tem p erature in c accurac y in c upper limit lower limit 44 of 45
ds1921g thermochron i button 45 of 45 revision history revision date description pages changed 120407 added bullet ?water resistant or waterproof if placed inside ds9107 ibutton capsule (exceeds water resistant 3 atm requirements)?. deleted ?application pending? from ul bullet and safety statement. add text to application section: note that the initial sealing level of ds1921g achieves ip56. aging and use conditions can degrade the integrit y of the seal over time, so for applications with significant exposure to liquids, sprays, or other similar environments, it is recommended to place the thermochron in the ds9107 i button capsule. the ds9107 provides a watertight encl osure that has been rated to ip68 (see www.maxim-ic.com/an4126 ). 1, 2


▲Up To Search▲   

 
Price & Availability of DS1921G-F5

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X